package cn.picclife.mwx.manager.util;

public class ThreadLocalContext {
	
	private static final ThreadLocal<ContextObj> threadLocal = new ThreadLocal<ContextObj>();

	private ThreadLocalContext() {
	}

	public static ContextObj get() {
		if (threadLocal.get() == null)
			threadLocal.set(new ContextObj());
		return threadLocal.get();
	}

	public static void remove() {
		threadLocal.remove();
	}
	
}
